﻿<%@ Page Title="条目列表-首家汽车行业人才测评系统" Language="C#" MasterPageFile="~/System/SiteSystem.Master" AutoEventWireup="true"
    CodeBehind="QuestionList.aspx.cs" Inherits="EvaluationSystem.QuestionList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        请选择维度：<asp:DropDownList ID="ddlDimension" runat="server" Width="150px" CssClass="controlstyle" OnSelectedIndexChanged="ddlDimension_SelectedIndexChanged"
            AutoPostBack="true">
        </asp:DropDownList>
    </p>
    <asp:GridView ID="grVQuestionManage" runat="server" AutoGenerateColumns="False"
        CellPadding="4" DataKeyNames="question_id" ForeColor="#333333" GridLines="None"
        OnRowCommand="GrVQuestionList_RowCommand"
        Width="100%" OnRowDataBound="GridView1_RowDataBound" 
        OnPageIndexChanging="GridView1_IndexChanging" ShowHeaderWhenEmpty="True" OnDataBound="grVQuestionManage_DataBound"
        CssClass="maintable">
        <FooterStyle BackColor="#63C1CD" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <asp:CheckBox ID="CB_Select" runat="server" AutoPostBack="false" />
                </ItemTemplate>
                <ItemStyle Width="5%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:BoundField DataField="question_id" HeaderText="ID" ReadOnly="True" SortExpression="question_id"
                Visible="false" />
            <asp:BoundField DataField="question_no" HeaderText="题号" ReadOnly="True" SortExpression="question_no"
                Visible="true">
                <ItemStyle Width="10%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="question_title" HeaderText="题干" ReadOnly="True" SortExpression="question_title"
                Visible="true">
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="55%" Wrap="False" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="question_id" DataNavigateUrlFormatString="AddQuestion.aspx?question_id={0}&&IsReadOnly=1"
                HeaderText="查看" Text="查看">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:HyperLinkField>

            <asp:HyperLinkField DataNavigateUrlFields="question_id" DataNavigateUrlFormatString="AddQuestion.aspx?question_id={0}"
                HeaderText="编辑" Text="编辑">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
            </asp:HyperLinkField>
             <asp:ButtonField DataTextField="question_status" ButtonType="Button" HeaderText="操作"
                            CommandName="DisableQuestion" Visible="true" 
                ControlStyle-CssClass="bluebtn" >
<ControlStyle CssClass="bluebtn"></ControlStyle>
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:ButtonField>
        </Columns>
        <RowStyle BackColor="#F7F6F3" HorizontalAlign="Center" VerticalAlign="Middle" />
        <AlternatingRowStyle BackColor="White"/>
        <EmptyDataTemplate>
            您好！当前维度分类下没有相应的题目。
        </EmptyDataTemplate>
        <HeaderStyle BackColor="#63C1CD" ForeColor="White" Font-Bold="True" 
            Font-Names="宋体" />
    </asp:GridView>
    <asp:CheckBox ID="CB_SelectAll" runat="server" AutoPostBack="true" Text="全选" OnCheckedChanged="CB_SelectAll_CheckedChanged" />
    <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" class="bluebtn" />
    <asp:Button ID="btnExport" runat="server" Text="导出题目" OnClick="btnExport_Click" class="bluebtn" />

    <asp:Button ID="btnNew" runat="server" Text="新增题目" OnClick="btnNew_Click" class="bluebtn" />
</asp:Content>
